package com.jiming.webrpc;

import java.util.Random;

public class Host {
	protected String natIp = "";
	
	protected int natPort = 0;
	
	protected int localPort = 0;

	public String getNatIp() {
		return natIp;
	}

	public void setNatIp(String natIp) {
		this.natIp = natIp;
	}

	public int getNatPort() {
		return natPort;
	}

	public void setNatPort(int natPort) {
		this.natPort = natPort;
	}

	public int getLocalPort() {
		return localPort;
	}

	public void setLocalPort(int localPort) {
		this.localPort = localPort;
	}
	
	/**
	 * 判断本机是否是 Symmetric NatType？
	 */
	public boolean isSymmetricNatType() {
		if(this.localPort == this.natPort) {
			return true;
		}else {
			return false;
		}
	}

}
